using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Blog.Net.Business.BusinessObjects;
using Blog.Net.DataAccess.DataControls;

public partial class _BlogEntry : System.Web.UI.Page
{
	protected void Page_Load(object sender, EventArgs e) {}
	
	protected void blogEntryView_ModeChanged(object sender, EventArgs e)
    {
        if (blogEntryView.CurrentMode == FormViewMode.Insert || blogEntryView.CurrentMode == FormViewMode.Edit)
            blogEntryDetail.Visible = false;
        else
            blogEntryDetail.Visible = true;
    }	
	
	protected void createDateCal_SelectionChanged(object sender, EventArgs e)
    {
        TextBox createDate = (TextBox)blogEntryView.FindControl("createDate");
        createDate.Text = ((Calendar)sender).SelectedDate.ToString();
    }
	
}